<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="https://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <title>反馈回复 - Powered By ${systemConfig.systemName}</title>
    <meta name="Author" content="E-SHOP Team" />
    <meta name="Copyright" content="E-SHOP" />
    <link rel="icon" href="favicon.ico" type="image/x-icon" />
    <link rel="stylesheet" type="text/css" href="${base}/res/plugins/kindeditor-4.1.10/themes/default/default.css?v=2014-05-21" />
    <link href="${base}/res/css/common.css" rel="stylesheet" type="text/css" />
    <% include("/WEB-INF/views/common/include.html"){}%>
    <script type="text/javascript" src="${base}/res/plugins/hplus/js/plugins/layer/layer.min.js"></script>
    <script src="/res/plugins/laydate/laydate.js"></script>
    <style type="text/css">
        *, :before, :after {
            -webkit-box-sizing: border-box;
            box-sizing: content-box;
        }
    </style>
</head>
<body>
    <div class="path">
        客户服务 &raquo; 反馈回复
    </div>
    <form id="inputForm" class="am-form" action="" method="post" onsubmit="return check()">
        <input type="hidden" id="feedbackId" value="${userFeedBack.id!}" />
        <table class="input tabContent">
            <tr>
                <th>
                    姓名:
                </th>
                <td>
                    ${userFeedBack.name!}
                </td>
            </tr>
            <tr>
                <th>
                    反馈内容:
                </th>
                <td>
                    ${userFeedBack.content!}
                </td>
            </tr>
            <tr>
                <th>
                    回复内容:
                </th>
                <td>
                    <textarea name="content" id="content" rows="10" cols="40">${integralProduct.description!}</textarea>
                </td>
            </tr>

        </table>
        <div class="buttonArea" style="margin-left: 165px;margin-top: 5px;">
            <input type="button" class="button" id="submitbutton1" value="确 定" hidefocus="true" />&nbsp;&nbsp;&nbsp;&nbsp;
            <input type="button" class="button" onclick="window.history.back(); return false;" value="返  回" hidefocus="true" />
        </div>
    </form>
</body>
<script>
    $("#submitbutton1").click(function () {
        var feedbackId=$("#feedbackId").val();
        var content=$("#content").val();
        if(!content){
            layer.msg("请输入回复内容!");
            return;
        }
        $.ajax({
            url: "${base}/shop/feedbackreply/raplysave",
            type: 'POST',
            data:{
                "feedbackId":feedbackId,
                "content":content
            },
            success: function(data){
                if(data.code == 1){
                    layer.msg(data.desc);

                }else if (data.code == 0){
                    layer.msg("操作成功!");
                    setTimeout(function(){
                        //window.history.go(-1);
                        window.location.href="/shop/feedback/list";
                    },1000);

                }
            }});
    });
</script>
</html>